<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <p id="demo">js能改变HTML内容</p>
    <button type="button" onclick="document.getElementById('demo').innerHTML = 'hello'">click</button>
    <button type="button" onclick="document.getElementById('demo').style.fontSize = '35px'">click---改变字体大小</button>
    <button type="button" onclick='myfunction()'>click---改变背景颜色</button>
    <button type="button" onclick="document.getElementById('demo').style.display = 'none'">click--隐藏html属性</button>
    <button type="button" onclick="document.getElementById('demo').style.display = 'block'">click--显示隐藏的html属性</button>

    <p id="math">计算</p>
    <!-- <button type="button" onclick="document.getElementById('demo').style.display = 'block'">click--函数</button> -->
    <script>
        
    </script>
    <script src="./js基础.js"></script>
</body>

</html>